import request from '@/utils/request'

//个人信息
export function getInfo() {
  return request({
    url: '/mall-admin/admin/info',
    method: 'get',
  })
}
// 添加用户
export function create(params) {
  return request({
    url: '/mall-admin/memberLevel/create',
    method: 'post',
    params: params
  })
}
// 分页查询用户
export function list(params) {
  return request({
    url: '/mall-admin/memberLevel/list',
    method: 'get',
    params: params
  })
}
// 查看下级
export function listByParent(params) {
  return request({
    url: '/mall-admin/memberLevel/listByParent',
    method: 'get',
    params: params
  })
}
// 查看上级
export function listByChild(params) {
  return request({
    url: '/mall-admin/memberLevel/listByChild',
    method: 'get',
    params: params
  })
}
// 修改密码
export function updatePassword(params) {
  return request({
    url: '/mall-admin/memberLevel/updatePassword',
    method: 'post',
    params: params
  })
}
// 修改资质状态（资质认证状态：0待审核；1审核通过；-1审核不通过；）
export function updateStatus(params) {
  return request({
    url: '/mall-admin/memberLevel/update/status',
    method: 'post',
    params: params
  })
}
//订单总汇
export function listAll(params) {
  return request({
    url: '/mall-admin/order/listAll',
    method: 'get',
    params: params
  })
}
//订单明细
export function orderList(params) {
  return request({
    url: '/mall-admin/order/list',
    method: 'get',
    params: params
  })
}
//开奖期数
export function listPeriod(params) {
  return request({
    url: '/mall-admin/order/listPeriod',
    method: 'get',
    params: params
  })
}

//中奖号码录入
export function createWinOrder(params) {
  return request({
    url: '/mall-admin/order/createWinOrder',
    method: 'post',
    params: params
  })
}

//获取用户总数
export function userAll() {
  return request({
    url: '/mall-admin/memberLevel/userAll',
    method: 'get'
  })
}
